// import Login from '@/views/login/index'
// export default [
//   {
//     path: '/',
//     name: '',
//     redirect: '/login'
//   },
//   {
//     path: '/login',
//     name: 'login',
//     component: Login
//   }
// ]
const routes = [
  {
    path: '/',
    name: '',
    redirect: '/login'
  },
  {
    path: '/login',
    name: 'login',
    component: Login
  }
]
const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL, // 默认路由配置模式 在config里面配置
  routes
})
export default router
